import request from '@/utils/request'

export function list(query) {
  return request({
    url: '/work/clear/list',
    method: 'get',
    params: query
  })
}

export function clear(data) {
  return request({
    url: '/work/clear/del',
    method: 'delete',
    data: data
  })
}

export function delList(query) {
  return request({
    url: '/work/clear/delList',
    method: 'get',
    params: query
  })
}

export function edit(data) {
  return request({
    url: '/work/clear',
    method: 'put',
    data: data
  })
}
